
Pod::Spec.new do |s|
  s.name             = 'RimeLibrary'
  s.version          = '0.0.3'
  s.summary          = 'A short description of RimeLib.'
  s.description      = <<-DESC
                    TODO: Add long description of the pod here.
                       DESC
  s.homepage         = 'https://github.com/hulinhu/RimeLib'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { 'hulinhu' => 'hulinhu@weidian.com' }
  s.source           = { :git => 'https://gitee.com/Holink521/RimeLibrary.git', :tag => s.version.to_s }
  # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'
  s.ios.deployment_target = '8.0'



 s.source_files = 'RimeLib/Rime/include/*.{h}'
 s.subspec 'rime' do |sub| 
    sub.source_files = 'RimeLib/Rime/include/rime/*.{h}'
      sub.subspec 'algo' do |sub| 
          sub.source_files = 'RimeLib/Rime/include/rime/algo/*.{h}'
      end

      sub.subspec 'dict' do |sub| 
          sub.source_files = 'RimeLib/Rime/include/rime/dict/*.{h}'
      end

      sub.subspec 'gear' do |sub| 
          sub.source_files = 'RimeLib/Rime/include/rime/gear/*.{h}'
      end

      sub.subspec 'lever' do |sub| 
          sub.source_files = 'RimeLib/Rime/include/rime/lever/*.{h}'
      end

      sub.subspec 'yaml-cpp' do |sub| 
        sub.source_files = 'RimeLib/Rime/include/rime/yaml-cpp/*.{h}'
          sub.subspec 'contrib' do |sub| 
            sub.source_files = 'RimeLib/Rime/include/rime/yaml-cpp/contrib/*.{h}'
          end
          sub.subspec 'node' do |sub| 
              sub.source_files = 'RimeLib/Rime/include/rime/yaml-cpp/node/*.{h}'
              sub.subspec 'detail' do |sub| 
                sub.source_files = 'RimeLib/Rime/include/rime/yaml-cpp/node/detail/*.{h}'
              end
          end
      end
  end







s.vendored_libraries = "RimeLib/**/*.{a}"
 #相对于public_headers，这些文件不会被公开给Demo
s.public_header_files = "RimeLib/Rime/include/**/*.h"
#保护目录结构不变，如果不设置，所有头文件都将被放到同一个目录下
s.header_mappings_dir = "RimeLib/Rime/include/**"
#因为我的C头文件有嵌套，需要查找子目录，所以需要将non-recursive改为recursive
s.pod_target_xcconfig = { 'HEADER_SEARCH_PATHS' => '"${PODS_ROOT}/../../RimeLib/Rime/include"/**'}
s.library = 'stdc++','iconv'

end
